package com.etnet.streamserver.exception;

public class ParamException extends Throwable {
    private static final long serialVersionUID = 1L;
    private String classname;
    private String method;
    private String separator = "\n";

    public ParamException(String message, Throwable e) {
        super(message, e);
    }

    public ParamException(String message, Throwable e, String classname, String method) {
        super(message, e);
    }

    public String getMessage() {
        if ((this.classname != null) && (this.classname.length() > 0)) {
            return " Class/Method: " + this.classname + "/" + this.method + "  ParamException:" + this.separator
                    + super.getMessage();
        }
        return " ParamException:" + this.separator + super.getMessage();
    }
}